package org.example.demo4.model;

import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

/**
 * 操作日志 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Schema(name = "操作日志")
@Table(value = "sys_oper_log")
public class SysOperLogEntity {

    /**
     * 主键id
     */
    @Schema(description = "主键id")
    @Id(keyType = KeyType.Auto)
    private Long operId;

    /**
     * 标题
     */
    @Schema(description = "标题")
    @Column(value = "title")
    private String title;

    /**
     * 业务类型
     */
    @Schema(description = "业务类型")
    @Column(value = "business_type")
    private Integer businessType;

    /**
     * 方法名全路径
     */
    @Schema(description = "方法名全路径")
    @Column(value = "method")
    private String method;

    /**
     * 方法名
     */
    @Schema(description = "方法名")
    @Column(value = "request_method")
    private String requestMethod;

    /**
     * 操作类型
     */
    @Schema(description = "操作类型")
    @Column(value = "operator_type")
    private Integer operatorType;

    /**
     * 操作人
     */
    @Schema(description = "操作人")
    @Column(value = "oper_name")
    private String operName;

    /**
     * 操作部门
     */
    @Schema(description = "操作部门")
    @Column(value = "dept_name")
    private String deptName;

    /**
     * 接口路径
     */
    @Schema(description = "接口路径")
    @Column(value = "oper_url")
    private String operUrl;

    /**
     * ip地址
     */
    @Schema(description = "ip地址")
    @Column(value = "oper_ip")
    private String operIp;

    /**
     * 内外网
     */
    @Schema(description = "内外网")
    @Column(value = "oper_location")
    private String operLocation;

    /**
     * 请求参数
     */
    @Schema(description = "请求参数")
    @Column(value = "oper_param")
    private String operParam;

    /**
     * 请求返回
     */
    @Schema(description = "请求返回")
    @Column(value = "json_result")
    private String jsonResult;

    /**
     * 状态
     */
    @Schema(description = "状态")
    @Column(value = "status")
    private Integer status;

    @Column(value = "error_msg")
    private String errorMsg;

    @Column(value = "oper_time")
    private Date operTime;


    public Long getOperId() {
        return operId;
    }

    public void setOperId(Long operId) {
        this.operId = operId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getBusinessType() {
        return businessType;
    }

    public void setBusinessType(Integer businessType) {
        this.businessType = businessType;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public Integer getOperatorType() {
        return operatorType;
    }

    public void setOperatorType(Integer operatorType) {
        this.operatorType = operatorType;
    }

    public String getOperName() {
        return operName;
    }

    public void setOperName(String operName) {
        this.operName = operName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getOperUrl() {
        return operUrl;
    }

    public void setOperUrl(String operUrl) {
        this.operUrl = operUrl;
    }

    public String getOperIp() {
        return operIp;
    }

    public void setOperIp(String operIp) {
        this.operIp = operIp;
    }

    public String getOperLocation() {
        return operLocation;
    }

    public void setOperLocation(String operLocation) {
        this.operLocation = operLocation;
    }

    public String getOperParam() {
        return operParam;
    }

    public void setOperParam(String operParam) {
        this.operParam = operParam;
    }

    public String getJsonResult() {
        return jsonResult;
    }

    public void setJsonResult(String jsonResult) {
        this.jsonResult = jsonResult;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public Date getOperTime() {
        return operTime;
    }

    public void setOperTime(Date operTime) {
        this.operTime = operTime;
    }
}
